<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    
    <title>Ladebildschirm</title>
    
    <!-- JQuery -->
    <script src="jquery.js"></script>
    
    <script type="text/javascript">
    
      // Download von möglichen externen XML Dateien
      function downloadUrl(url, callback) {
          var request = window.ActiveXObject ?
              new ActiveXObject('Microsoft.XMLHTTP') :
              new XMLHttpRequest;
    
          request.onreadystatechange = function() {
            
			// Ladebildschirm einblenden
            if(request.readyState == 1) {
                $("#container").fadeIn(250);
            }
            
			// Ladebildschirm ausblenden
            if (request.readyState == 4) {
                $("#container").fadeOut(250);
                callback(request.responseText, request.status);
            }
          };
    
		  // AJAX Request senden
          request.open('GET', url, true);
          request.send(null);
        }
    
        // XML Parsen...
        function parseXml(str) {
          if (window.ActiveXObject) {
            var doc = new ActiveXObject('Microsoft.XMLDOM');
            doc.loadXML(str);
            return doc;
            
          } else if (window.DOMParser) {
            return (new DOMParser).parseFromString(str, 'text/xml');
          }
        }
     
	  // Testfunktion
      function test(){
          downloadUrl("loadDummy.php", function(data) {
          });   
      }

    </script>
    
    <link href="loadlayer.css" rel="stylesheet" type="text/css" />
</head>

<body>

    <div id="container" class="outer">
        <br /><br /><br />
        <center><img src="load.gif" width="31" height="31" /></center>
    </div> 
    
    <input name="btn_test" type="button" id="btn_test"
     onclick="test();" value="Start" />

</body>
</html>